package office.action.person;

import office.service.person.ITripService;
import platform.common.action.BaseAction;

public class TripCheckAction extends BaseAction{
	private static final long serialVersionUID = 1L;
	private String id;
	private String proKey;
	private ITripService tripService;

	/**
	 * 确认提交审批页面
	 * @return
	 * @throws Exception
	 */
	public String gotoSubmitCheck()throws Exception{
		return "gotoSubmitCheck";
	}
	/**
	 * 提交审批
	 * @return
	 * @throws Exception
	 */
	public String submitCheck() throws Exception{
		try {
			tripService.submitCheck(id, proKey);
			this.getAjaxMessagesJson().setMessage(true, "", "提交审批成功");
			
		} catch (Exception e) {
			this.handleException(e);
		}
		return RESULT_AJAXJSON;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getProKey() {
		return proKey;
	}
	public void setProKey(String proKey) {
		this.proKey = proKey;
	}
	public ITripService getTripService() {
		return tripService;
	}
	public void setTripService(ITripService tripService) {
		this.tripService = tripService;
	}
	
}
